package cn.itsource.controller.app;

import cn.itsource.pojo.domain.Customer;
import cn.itsource.pojo.query.PageQueryWrapper;
import cn.itsource.pojo.ro.WxChatRegisterRo;
import cn.itsource.result.JSONResult;
import cn.itsource.result.PageResult;
import cn.itsource.service.ICustomerService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@Tag(name = "客户",description = "客户")
@RestController
@RequestMapping("/app/customer")
public class AppCustomerController {

    @Autowired
    public ICustomerService customerService;

    @Operation( summary= "保存Customer",description = "基础对象保存接口")
    @Parameter(name = "customer",description = "保存的对象",required = true)
    @PostMapping
    public JSONResult save(@RequestBody @Valid WxChatRegisterRo registerRo){
        return customerService.wxChatRegisterRo(registerRo);
    }



}
